<?
class driver_cfoxtpl2 implements ITemplateCompiler{
	private $tpl;
	function __construct(){
		$this->tpl = new CFoxtpl2();
	}
	
    public function assign($varname, $value){
        $this->tpl->vars[$varname] = $value;
    }
    
    public function fetch($resource_name){
        $ret = $this->tpl->fetch($resource_name);
        return $ret;
    }
    
    public function setTemplateDir($template_dir){
    	$this->tpl->setTemplateDir($template_dir);
	}
    
    public function setCompileDir($compile_dir){
    	$this->tpl->setCompileDir($compile_dir);
	}
	
    public function getTemplateDir(){
    	return $this->tpl->getTemplateDir();
	}

    public function getVar($var_name){
        return $this->tpl->vars[$var_name];
    }

    public function isSetVar($var_name){
        return isset($this->tpl->vars[$var_name]);
    }

}

?>